package com.tenxun.test;

import com.tenxun.mapper.StuMapper;
import com.tenxun.pojo.Stu;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class SysStuDao {

    @Autowired
    private StuMapper stuMapper;

    @Test
    void testSelect(){
        Stu stu = new Stu();
        stu.setName("玫瑰");
        List<Stu> list =  stuMapper.selectrows(stu);
        for (Stu stulist:list){
            System.out.println(stulist);
        }
    }

}
